driver: net: fsl-mc: Check NULL before pointer dereference
authorPrabhakar Kushwaha <[email protected]>
Fri, 18 Mar 2016 10:46:03 +0000 (16:16 +0530)
committerYork Sun <[email protected]>
Tue, 29 Mar 2016 15:46:01 +0000 (08:46 -0700)
commitb576d325acbcbe05d712e3a995b4ce6689eb96c5
treefc43c17965c8d577bea1d8ac290612f1e352eced
parentcd7b3fbcf46844230ad664884c18d0281a4a31d7
driver: net: fsl-mc: Check NULL before pointer dereference

NULL pointer should be checked before any dereference.  This patch
move memest after the NULL pointer check.

Signed-off-by: Prabhakar Kushwaha <[email protected]>
Reported-by: Jose Rivera <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: York Sun <[email protected]>
drivers/net/fsl-mc/dpio/qbman_sys.h